$(document).ready(function(){
	//编辑队伍	
	$("#EDIT_TEAM").click(function(){
		var content = $("#d_teamID").text();
		window.location.href="/ag/hmk/findOneTeam_getOneTeam.action?teamID="+content;
	});
		
	//删除队伍	
	$("#DEL_TEAM").click(function(){
		var isPass = confirm("确定要删除吗？");
		if(isPass){
			var content = $("#d_teamID").text();
			var url = 'hmk/delTeam_delTeam.action';
			var params = {
				teamID:content
			}; 
			jQuery.post(url, params, delData, 'json');
		}
		
	});
	
	//返回
	$("#BACK_TEAM").click(function(){
		window.location.replace("/ag/hmk/AidTeamMain.jsp");
	});
});

function delData(data){
	if(data.delStr=='1'){
		alert("删除成功");
		window.location.replace("/ag/hmk/AidTeamMain.jsp");
	 }else{
		alert("删除失败");
	 }
}